﻿<%@ Page Title="" Language="C#" MasterPageFile="~/web/common/Common.Master" AutoEventWireup="true" CodeBehind="GoodsList.aspx.cs" Inherits="shop.web.view.GoodsList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title><%=catagory.Name %>商品详情</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="layui-container">

        <div class="layui-field-box layui-bg-orange">
           <%=catagory.Name %>
        </div>
        <% 
            var count =0;
            foreach (var goods in goodsList)
            {

                count++;
        %>
        <% if (count == 1)
            {
        %>
        <div class="layui-row ">
            <%}%>
            <div class="layui-col-md3 layui-col-xs6 layui-col-sm6">
                <div class="goods-item">
                    <div class="content">
                        <a href="/web/view/GoodDetail.aspx?id=<%=goods.Id %>">
                            <img src="/web/resource/img<%=goods.Image.ImagePath %>" />
                        </a>
                    </div>
                    <div class="description">
                        <%=goods.Name %>
                    </div>
                    <div class="data">
                        价格 <span class="price">
                            <%=goods.Price %></span>元
                    </div>
                    <div class="mask">
                    </div>
                </div>
            </div>
            <% if (count == 4)
                {
                    count = 0;
            %>
        </div>
        <%}%>
        <%
            }
        %>
    </div>


</asp:Content>
